package Stream;

import java.io.FileOutputStream;
import java.io.PrintWriter;

public class ptw {
    public static void main(String[] args) throws Exception{
        FileOutputStream fos = new FileOutputStream("F:/a.txt");
        PrintWriter pw = new PrintWriter(fos,true);
        pw.println("aaa");
        pw.println("bbb");
        System.out.println("写入成功");
    }
}
